package com.glls.customer;


import com.glls.customer.config.CustomLoadBalancerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@LoadBalancerClients({
        @LoadBalancerClient(value = "service-search", configuration = CustomLoadBalancerConfig.class),
})

// 扫描  feign 接口 所在的包
@EnableFeignClients(basePackages = {"com.glls.customer.feign"})
public class CustomerApp {
    public static void main(String[] args) {

        SpringApplication.run(CustomerApp.class, args);

    }






}